<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增渠道信息')" />
    <th:block th:include="include :: select2-css" />


</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-channel-add">

            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>修改成的值</h5>
                </div>
                <div class="ibox-content">
                    <div class="form-group">
                        <label class="col-sm-3 control-label is-required">落地页类型：</label>
                        <div class="col-sm-8">
                            <select name="pageType" class="form-control">
                                <option value="">不修改</option>
                                <option  th:each="item:${typeList}" th:text="${item.name}" th:value="${item.type}"></option>
                            </select>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-3 control-label is-required">短信开关：</label>
                        <div class="col-sm-8">
                            <select name="smsVerifyFlag" class="form-control">
                                <option value="">不修改</option>
                                <option value="1">开启</option>
                                <option value="0">关闭</option>
                            </select>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-3 control-label is-required">渠道类型：</label>
                        <div class="col-sm-8">
                            <select name="channelType"  class="form-control">
                                <option value="">不修改</option>
                                <option  th:each="item:${channelTypeList}" th:text="${item.name}" th:value="${item.value}"></option>
                            </select>
                        </div>
                    </div>
                </div>
            </div>


            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>修改的条件</h5>
                </div>
                <div class="ibox-content">

                    <div class="form-group">
                        <label class="col-sm-3 control-label is-required">渠道类型：</label>
                        <div class="col-sm-8">
                            <select name="conditChannelType"  class="form-control">
                                <option value="">没条件</option>
                                <option  th:each="item:${channelTypeList}" th:text="${item.name}" th:value="${item.value}"></option>
                            </select>
                        </div>
                    </div>
                </div>
            </div>

        </form>
    </div>
    <th:block th:include="include :: footer" />

    <th:block th:include="include :: select2-js" />
    <script th:inline="javascript">
        var prefix = ctx + "extend/channel"
        $("#form-channel-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/batchEditSave", $('#form-channel-add').serialize());
            }
        }
    </script>
</body>
</html>